import { ref,onMounted } from 'vue';

export default function GetMouseMove(){

    const clientX = ref(0);
    const clientY = ref(0);
    
    const mouseMove = (e: MouseEvent) => {
      clientX.value = e.clientX;
      clientY.value = e.clientY;
    };

    
    onMounted(() => {
    console.log('鼠标位置初始化！');
    });
  
    return { clientX,clientY,mouseMove }
}